package jerry.html.events;

import java.util.List;

/**
 * 
 * 
 * Suicide event
 * 
 * 
 * @author (h0t@_G0|i
 *
 */
public class SuicideEvtCapImpl
    extends EvtCap
{

    public SuicideEvtCapImpl(List<String> list)
    {
        if(list.size() < 6)
        {
            validEvt = false;
            return;
        } else
        {
            validEvt = true;
            timeStamp = Double.valueOf(list.get(0)).doubleValue();
            playerId = Integer.parseInt(list.get(2));
            weapon = list.get(3);
            deathType = list.get(4);
            suicideReason = list.get(5);
            return;
        }
    }

    
    public int playerId;
    public String weapon;
    public String deathType;
    public String suicideReason;
}
